x86/hvm: prevent gcc uninitialised var warning
authorDon Slutz <dslutz@verizon.com>
Mon, 23 Mar 2015 15:53:44 +0000 (16:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Mar 2015 15:53:44 +0000 (16:53 +0100)
commitffdb781883abd3215287ba1b1853f3d437d1240c
treea80ca9d4f532d7c67f1cc880f08a410c8ef5da76
parent2e4e0d4efc66dae7ade88dec4ff934a3d4c42d86
x86/hvm: prevent gcc uninitialised var warning

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 reports:
----------------------------------------------------------------------
hvm.c: In function `hvm_create_ioreq_server':
hvm.c:487:18: error: `bufioreq_pfn' may be used uninitialised in this function
[-Werror=uninitialized]
hvm.c:718:30: note: `bufioreq_pfn' was declared here
----------------------------------------------------------------------

My code analysis says that gcc is wrong, but initilize the variable
to prevent the gcc warning.

Reported-by: Ian Murray <murrayie@yahoo.co.uk>
Signed-off-by: Don Slutz <dslutz@verizon.com>
xen/arch/x86/hvm/hvm.c